<link href="../addons/jy_cong2fan/custom/templates/mobile/style.css?v=201705251730" rel="stylesheet">
<style>
.fui-header a.back:before {
    border-color: #fff;
}
.fui-header:after {
	height: 0;
	border-bottom: 0 solid #D9D9D9;
}
</style>
<div class="fui-page fui-page-current page-commission-down">
	 <div class="fui-header sysbgcolor">
        <div class="fui-header-left">
            <a class="back" style="color:#fff" ng-click="goback();"></a>
        </div>
        <div class="title" style="color:#fff">我的返额</div>
    </div>
    <div class="fui-content">
		<div style="background: {{main.syscolor||'#05c175'}};margin-top:0;height:5rem">
		</div>
		<div style="padding:0.5rem;margin-top:-4.5rem">
		<div class="radius" style="background:#fff;position: relative;">
				<div class="fui-cell-title c" style="font-size:0.7rem;padding-left:0.5rem;padding-top:1rem">
					<div class="bold">剩余返额</div>
					<div style="font-size:1.5rem">{{pagedata.member.lastfanfee||'0.00'}}</div>
				</div>
				<i class="icon icon-dixiaofei syscolor" style="font-size:2.6rem;position: absolute;top:0;right:0.5rem" href="javascript:;" ng-click="access_json('jy_cong2fan/orderfee//type=6')"></i>
		</div>
        <div class="fui-cell-group radius" ng-repeat="item in pagedata.list" style="background:{{item.bgcolor||'#f60'}};">
			<div class="fui-cell">
				<div class="fui-cell-text" style="line-height:2">
					<div class="gray" style="color:#eee;font-size:0.6rem">总回补数：{{item.fanfee}}</div>
					<div class="gray" style="color:#eee;font-size:0.6rem">已回补：{{item.isfee}}</div>
					<div class="gray" style="color:#eee;font-size:0.6rem">剩余回补：{{item.lastfanfee}}</div>
				</div>
				<div class="fui-cell-remark noremark">
					<div class="bold" style="color:#fff;">回补中</div>
					<div class="gray" style="color:#eee;font-size:0.6rem">{{item.createtime}}</div>
				</div>
			</div>
			<div class="water">
					<div class="water-1"></div>
					<div class="water-2"></div>
			</div>
		</div>
		<div class="fui-list-group radius" id="container">
		<div ng-repeat="item in pagedata.list track by item.mid" class="fui-list" style="height: 3.5rem">
			<div class="fui-list-media">
				<img ng-src="{{tomedia(item.member.avatar) ||'../core/resource/images/nopic.jpg'}}" class="round" style="width:2rem;height:2rem">
			</div>
			<div class="fui-list-inner">
				<div class="row">
				      <div class="row-text" >
					  <i ng-if="item.is_agent" class="icon icon-star text-danger"></i>
					 {{item.member.nickname}}
				      </div>
				</div>
				<div ng-if="item.is_agent ==1" class="subtitle">
				    加入时间: {{item.agenttime}}
				</div>
				<div ng-if="item.is_agent !=1" class="subtitle">
				    注册时间:{{item.createtime}}
				</div>
			</div>
			<div ng-if="item.is_agent" class="row-remark" style="min-width:3rem">
				<p>{{item.member_num}}个成员</p>
			</div>
			<div ng-if="!item.is_agent" class="row-remark" style="min-width:3rem">
				<p>消费: {{item.moneycount}}元</p>
				<p>{{item.ordercount}}个订单</p>

			</div>
		</div>
		</div>
		<div class='infinite-loading' style="display:none" id="loading_show"><span class='fui-preloader'></span><span class='text'> 正在加载...</span></div>
		<div ng-if="pagedata.list.length==0" class='content-empty' >
			<i class="icon jinyunicon icon-cry" style="width: 6rem;margin-bottom: 0.5rem;"></i>
			<br/>
			<p style="color: #999;font-size: .75rem">暂时没有任何数据</p>
		</div>
		</div>
    </div>
</div>
<div ng-include="sys_html('_footer')"></div>
<script>
scope.pagedata.get_list=function(){
	scope.tool.get_list('jy_cong2fan/fanlog/list/',true);
}
scope.tool.get_list('jy_cong2fan/fanlog/list/',true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_cong2fan/fanlog/list/');
}
</script>

